# -*- coding:utf-8 -*-
'''
# Author: xiguan
# Mail: xiguan.teng@qq.com
# -----
# Last Modified: 2022-05-10 16:42:01
# Modified By: xiguan
# -----
# Copyright (c) 2022 XiGuan Inc.
# 
# No Bug No error No warning.
# -----
'''

from config import Base
from sqlalchemy import Integer, String, Column

class Sync(Base):
    __tablename__ = 'syncdir'
    id = Column(Integer, primary_key=True)
    path = Column(String(100))
    port = Column(String(10))
    uid = Column(Integer)

    def __init__(self, path, port, uid):
        self.uid = uid
        self.port = port
        self.path = path